package com.system.manager.common.enums.fileType;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.File;
@AllArgsConstructor
@NoArgsConstructor
public enum VideoFile implements FileType{
    ALL(".mp4.avi"),
    MP4(".mp4"),
    AVI(".avi");

    public String videoFormat;

    @Override
    public String getFileType() {
        return "img";
    }

    @Override
    public String getFileFormat() {
        return videoFormat;
    }

    @Override
    public boolean isValid(String fileSuffixName) {
        return ALL.getFileFormat().contains(fileSuffixName);
    }

    @Override
    public boolean equals(String fileSuffixName) {
        return this.getFileFormat().equals(fileSuffixName);
//        return false;
    }

    @Override
    public boolean isNetworkSecurity(File file) {
        return false;
    }


    @Override
    public void operation(File file) {

    }
}
